package com.glory.wxelectricitypda.adapter;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.glory.wxelectricitypda.R;
import com.glory.wxelectricitypda.bean.BACKShelfBean;

import java.util.List;

public class ScrapShelvesAdapter extends BaseQuickAdapter<BACKShelfBean.LOTSCRAPSDTO , BaseViewHolder> {
    public ScrapShelvesAdapter(@Nullable List<BACKShelfBean.LOTSCRAPSDTO> data) {
        super(R.layout.adapter_scrap_shelves,data);
    }

    @Override
    protected void convert(BaseViewHolder helper, BACKShelfBean.LOTSCRAPSDTO item) {
        helper.setText(R.id.lotId,item.getLOTID());
        helper.setText(R.id.mainQty,String.valueOf(item.getMAINQTY()));
        helper.setText(R.id.componentId,item.getCOMPONENTID());
        helper.setText(R.id.actionCode,item.getACTIONCODE());
        helper.setText(R.id.actionComment,item.getACTIONCOMMENT());

    }
}
